package com.shaoshaohuo.app.utils;

import com.shaoshaohuo.app.framework.AccountManager;
import com.shaoshaohuo.app.framework.SharedPreferencesHelper;

/**
 * Created by Administrator on 2017/8/21.
 */

public class LoginUtils {
     public static boolean IsLogining(){
         boolean islogin=true;
         /**
          * SharedPreferencesHelper.setString(Field.USER_TOKEN,"ba88dAgdlEQ%2FwPfsOkR1s2KTe1RVi2JLlWSpCLPgey8efiq7yP3aDIT%2BwpmpgdNI4f56vw7VqxgxEch%2FVkStELO0dnDu6YxwVXfbXbwR7ppV0BmwpM6eQcB0YqFIRyrYceewXOKXIGi4Pcx7UGEGVc9IPNrfe0HBVKfNWqVR24%2F1nnF03oOHL8%2Fxm8o4qQa8EvPpLqPWkuBV7GDmPemtLgBlaD7ru0V%2FbwszRK8fOzYStwdvuiJqeAIi0uHPMGxo2XGutSMBw98LddWsArLs4ZwmexUnIOkNqGZuEJh72xNM1Ce34LobBnghemefvwVMj7tKbxUHJnk400oKjobkixtK9llaqUrWiG2l7WKgKBRzwQIKTew831lWffDSHhtlTgMBpeMgO1zb1TnKR3k");
          SharedPreferencesHelper.setString(Field.USER_ID,"542");
          */
         if(!AccountManager.isLogin()|| SharedPreferencesHelper.getString(SharedPreferencesHelper.Field.USER_ID,"").equals("542")){
             return false;
         }
         return islogin;
     }

}
